﻿namespace MovieGalleryDLL
{
    using System;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.IO;

    public class Movie
    {
        public int ID
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public string Genre
        {
            get;
            set;
        }

        public bool Like
        {
            get;
            set;
        }

        public string Image
        {
            get;
            set;
        }

        public string FilePath
        {
            get;
            set;
        }

        public string IMDB
        {
            get;
            set;
        }

        public string MD5
        {
            get;
            set;
        }

        public Movie()
        {

        }

        public static string PathToImage(string path)
        {
            return path;
            //return path != null && File.Exists(path) ? File.ReadAllBytes(path) : null;
        }
    }
}